package ru.niir.goodfil.c1;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("OrderItem")
public class OrderItem
{
    @XStreamAsAttribute
    private String goodCode1C;

    @XStreamAsAttribute
    private int count;

    @XStreamAsAttribute
    private float price;

    public OrderItem()
    {
    }

    public OrderItem(String goodCode1C, int count)
    {
        this.goodCode1C = goodCode1C;
        this.count = count;
    }

    public OrderItem(String goodCode1C, int count, float price)
    {
        this.goodCode1C = goodCode1C;
        this.count = count;
        this.price = price;
    }

    public String getGoodCode1C()
    {
        return goodCode1C;
    }

    public void setGoodCode1C(String goodCode1C)
    {
        this.goodCode1C = goodCode1C;
    }

    public int getCount()
    {
        return count;
    }

    public void setCount(int count)
    {
        this.count = count;
    }

    public float getPrice()
    {
        return price;
    }

    public void setPrice(float price)
    {
        this.price = price;
    }

    @Override
    public String toString()
    {
        return "OrderItem{" +
               "goodCode1C='" + goodCode1C + '\'' +
               ", count=" + count +
               ", price=" + price +
               '}';
    }
}
